package com.fz.us.oa.core.service.com;

import com.fz.us.admin.company.service.BaseFlowService;
import com.fz.us.admin.dict.entity.DictItem;
import com.fz.us.oa.core.entity.com.Resident;

import java.util.List;

/**
 * Created by dzw on 2018/3/13.
 */
public interface ResidentService extends BaseFlowService<Resident, String> {
    /**
     * 根据名族获得居民区
     */
    Resident getByName(String residentName);

    /**
     * 根据街道获取居民区
     */
    List<Resident> getResidentByStreet(DictItem street);

    /**
     * 根据街道编号获取街道
     */
    DictItem getStreetByNo(int streetNo);
}
